package com.cq.hd.member.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.PopRecordDto;
import com.cq.hd.member.api.dto.PopRecordSaveDto;
import com.cq.hd.member.api.vo.PopRecordVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "hd-o2o-member-service", contextId = "pop-record-api")
public interface PopRecordApi {

    // 保存弹窗数据
    @PostMapping("/member/popRecord/savePopRecord")
    Result<Boolean> savePopRecord(@RequestBody PopRecordSaveDto popRecordSaveDto);

    // 根据条件查询弹窗数据
    @GetMapping("/member/popRecord/listByDto")
    Result<List<PopRecordVo>> listByDto(@SpringQueryMap PopRecordDto popRecordDto);

}
